package gui;

import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import java.awt.BorderLayout;
import java.awt.Dimension;

public class MultiTabWindow extends JFrame {
	private static final long serialVersionUID = -1004465717978483861L;
	JTabbedPane tabbedPane;
	
	public MultiTabWindow() {
		setMinimumSize(new Dimension(1000, 500));
		tabbedPane = new JTabbedPane();
		getContentPane().add(tabbedPane, BorderLayout.CENTER);
	}
	
	public MultiTabWindow(int tabPosition) {
		this();
		tabbedPane.setTabPlacement(tabPosition);
	}
	
	public void addTab(JComponent component, String title) {
		tabbedPane.addTab(title, null, component, null);
	}
	
}
